package com.baidu.cmsService.services;

import com.baidu.cmsCommes.pojo.Channel;
import com.baidu.cmsCommes.pojo.Group;
import com.baidu.cmsCommes.pojo.Pager;

import java.util.List;

/**
 * @Author: BSS
 * @create: 2020/6/18/15:14
 */
public interface GroupService {
    List<Group> groupList();

    Pager<Group> groupListPage(Integer page,Integer size);

    Boolean saveGroup(Group group);

    Boolean deleteGroupById(Integer gid);

    Group selectById(Integer gid);

    Boolean updateGroupById(Group group);

    Boolean clearUsers(Integer gid);

    List<Channel> showTree(Integer gid);

    List<Integer> getCids(Integer gid);

    List<Channel> treeAll();

}
